#ifndef TABCONTENT_H
#define TABCONTENT_H

#include <QWidget>

class QLabel;
class QComboBox;
class QLineEdit;
class QTableView;
class QPushButton;

class TabContent : public QWidget
{
    Q_OBJECT
public:
    explicit TabContent(QWidget *parent = nullptr);

public:
    QTableView *getTableView();
    void setSheetName(const QString &name)
    {
        excelSheetName = name;
    }

private slots:
    void on_orderChanged(int index);
    void on_filterChanged(int index);
    void export2excel();
private:
    void initWidget();
    void initParameters();

private:
//    QSplitter *splitter ;
    QComboBox *comboFilter;
    QComboBox *comboOrder;
    QLineEdit *lineEditFilter;
    QPushButton *pushBtnRefresh;
    QPushButton *pushBtnExport;
    QLabel *labelItemsCount;
    QTableView *tableView;
    QString excelSheetName;
};

#endif // TABCONTENT_H
